package com.core.listener;

import org.noear.solon.annotation.Component;
import org.noear.solon.core.event.AppLoadEndEvent;
import org.noear.solon.core.event.EventListener;

@Component
public class StartupListener implements EventListener<AppLoadEndEvent> {

    @Override
    public void onEvent(AppLoadEndEvent event) throws Throwable {
        String banner =
                "╔════════════════════════════════╗\n" +
                        "║         CommandApp v1.0        ║\n" +
                        "║    Application Started! 🚀     ║\n" +
                        "╚════════════════════════════════╝";
        System.out.println(banner);
    }
}
